from django.contrib.syndication.feeds import Feed
from models import Entry

class BlogEntryRss(Feed):
    title = "Blog | douglasjarquin.com"
    link = "http://www.douglasjarquin.com/blog/"
    description = "The Professional Blog of Douglas Jarquin"

    def items(self):
        return Entry.live.all()

    def item_pubdate(self, item):
        return item.published_on

    item_author_name = "Douglas Jarquin"
    item_author_email = "douglasjarquin@gmail.com"
    item_author_link = "http://douglasjarquin.com/"